home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / k3biso9660imagewritingjob.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-27  |  2.2 KB  |  99 lines

  1. /*
  2.  *
  3.  * $Id$
  4.  * Copyright (C) 2003 Sebastian Trueg <trueg@k3b.org>
  5.  *
  6.  * This file is part of the K3b project.
  7.  * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
  8.  *
  9.  * This program is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; either version 2 of the License, or
  12.  * (at your option) any later version.
  13.  * See the file "COPYING" for the exact licensing terms.
  14.  */
  15.  
  16.  
  17. #ifndef K3BISO9660_IMAGE_WRITING_JOB_H
  18. #define K3BISO9660_IMAGE_WRITING_JOB_H
  19.  
  20. #include <k3bjob.h>
  21. #include "k3b_export.h"
  22. class QString;
  23. class K3bAbstractWriter;
  24. class KTempFile;
  25. namespace K3bDevice {
  26.   class Device;
  27. }
  28. class K3bVerificationJob;
  29.  
  30.  
  31. /**
  32.   *@author Sebastian Trueg
  33.   */
  34. class LIBK3B_EXPORT K3bIso9660ImageWritingJob : public K3bBurnJob
  35. {
  36.   Q_OBJECT
  37.     
  38.  public:
  39.   K3bIso9660ImageWritingJob( K3bJobHandler* );
  40.   ~K3bIso9660ImageWritingJob();
  41.  
  42.   K3bDevice::Device* writer() const { return m_device; };
  43.     
  44.   QString jobDescription() const;
  45.   QString jobDetails() const;
  46.         
  47.  public slots:
  48.   void cancel();
  49.   void start();
  50.  
  51.   void setImagePath( const QString& path ) { m_imagePath = path; }
  52.   void setSpeed( int s ) { m_speed = s; }
  53.   void setBurnDevice( K3bDevice::Device* dev ) { m_device = dev; }
  54.   void setWritingMode( int mode ) { m_writingMode = mode; }
  55.   void setSimulate( bool b ) { m_simulate = b; }
  56.   void setNoFix( bool b ) { m_noFix = b; }
  57.   void setDataMode( int m ) { m_dataMode = m; }
  58.   void setVerifyData( bool b ) { m_verifyData = b; }
  59.   void setCopies( int c ) { m_copies = c; }
  60.  
  61.  protected slots:
  62.   void slotWriterJobFinished( bool );
  63.   void slotVerificationFinished( bool );
  64.   void slotVerificationProgress( int );
  65.   void slotWriterPercent( int );
  66.   void slotNextTrack( int, int );
  67.   void startWriting();
  68.     
  69.  private:
  70.   bool prepareWriter( int mediaType );
  71.  
  72.   int m_writingMode;
  73.   bool m_simulate;
  74.   K3bDevice::Device* m_device;
  75.   bool m_noFix;
  76.   int m_speed;
  77.   int m_dataMode;
  78.   bool m_verifyData;
  79.   bool m_dvd;
  80.  
  81.   QString m_imagePath;
  82.  
  83.   K3bAbstractWriter* m_writer;
  84.   KTempFile* m_tocFile;
  85.  
  86.   bool m_canceled;
  87.   bool m_finished;
  88.  
  89.   int m_copies;
  90.   int m_currentCopy;
  91.  
  92.   K3bVerificationJob* m_verifyJob;
  93.  
  94.   class Private;
  95.   Private* d;
  96. };
  97.  
  98. #endif
  99.